package com.tensquare.split.dao;

import com.tensquare.split.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author: create by  Raphaelkxy
 * @version: v1.0
 * @description: com.tensquare.split.dao
 * @date:2019/9/11
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    /**
     *根据上级ID查询吐槽列表
     *
     */
    public Page<Spit>findByParentid(String parentid, Pageable pageable);
}
